package com.atfusu.service.impl;

import com.atfusu.base.BaseDao;
import com.atfusu.base.impl.BaseServiceImpl;
import com.atfusu.bean.entity.HouseImage;
import com.atfusu.dao.HouseImageDao;
import com.atfusu.service.HouseImageService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Title:
 * Author: fusu
 * DateTime:  2022/11/29
 * Description:
 **/
@DubboService
public class HouseImageServiceImpl extends BaseServiceImpl<HouseImage> implements HouseImageService {


    @Autowired
    private HouseImageDao houseImageDao;

    @Override
    protected BaseDao<HouseImage> getEntityDao() {
        return houseImageDao;
    }

    @Override
    public List<HouseImage> findListByHouseIdAndType(Long id, Integer type) {
        return houseImageDao.findListByHouseIdAndType(id,type);
    }
}
